package com.hotdog.controller;

import com.hotdog.service.VipViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 郭鲁政
 */
@RestController
@RequestMapping("/vipview")
@PreAuthorize("hasAuthority('sys:res:create')")
public class VipView {
    @Autowired
    private VipViewService vipViewService;
    @GetMapping("/logs")
    public String getString(){
        vipViewService.logs();
        return "HelloWorld";
    }
}
